package cn.zktr.Personnel.common;
import org.springframework.context.annotation.Configuration;
import org.springframework.format.FormatterRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@SuppressWarnings("deprecation")
@Configuration
//String转Date参数转换器激活
public class WebMvcConfig extends WebMvcConfigurerAdapter {
    @Override
    public void addFormatters(FormatterRegistry registry) {
       registry.addConverter(new DateConverter());
       registry.addConverter(new TimeConverter());
    }
    
}
